Objects Reference

flyEngine::get_sound_object

Prototype

sound *get_sound_object(char *name)

Parameters

Parameter Type Description
name char * sound name

Return Value

Returns a pointer to the given sound or NULL if sound not found.

Remarks

This function is used to get sounds from the stock. It returns the sound pointer for a given string based sound name. If sound is not in the sounds linked list, it attempts to load the sound from disk.